package cn.zebra.dev.mall.module.cart.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class CartListDTO {
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "店铺id", hidden = true)
    private Long shopId;

    @ApiModelProperty(value = "用户id", hidden = true)
    private Long userId;

    @ApiModelProperty("商品id")
    private Long productId;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("购买时商品属性值 (数组格式:[金色, 16GB])")
    private String productAttributes;

    @ApiModelProperty("商品skuId")
    private Long productSkuId;

    @ApiModelProperty("单价")
    private BigDecimal unitPrice;

    @ApiModelProperty("数量")
    private Long num;

    @ApiModelProperty("总价")
    private BigDecimal totalPrice;
}
